package com.niuwa.p2p.service.redenvelope;

import java.util.Map;

import com.niuwa.p2p.core.mvc.entity.JsonResult;
import com.niuwa.p2p.core.mvc.entity.PageBean;
import com.niuwa.p2p.entity.redenvelope.RedEnvelopeRule;
import com.niuwa.p2p.vo.redenvelope.RedEnvelopeRuleVo;


/**
 * 红包规则
 * @author Dell
 *
 */
public interface IRedEnvelopeRuleService {
	
	/**
	 * 查询符合条件的红包规则
	 * @param paramMap
	 * @return
	 */
	public PageBean<RedEnvelopeRule> selectRedRuleByConditions(Map<String, Object> paramMap);
	
	/**
	 * 添加红包规则
	 * @param ruleVo
	 * @return
	 */
	public JsonResult addRedEnvelopeRule(RedEnvelopeRuleVo ruleVo);
	
	/**
	 * 根据规则编号查询规则相关信息
	 * @param ruleNo
	 * @return
	 */
	public RedEnvelopeRuleVo selectRedRuleByRuleNo(String ruleNo);
	
	/**
	 * 修改红包规则
	 * @param ruleVo
	 * @return
	 */
	public JsonResult updateRedEnvelopeRule(RedEnvelopeRuleVo ruleVo);
	
	/**
	 * 红包规则失效、启用状态修改
	 * @param ruleNo
	 * @return
	 */
	public JsonResult updateRedRuleStatus(String ruleNo, String type);
	
	/**
	 * 删除规则和相关金额区间
	 * @param ruleNo
	 * @return
	 */
	public JsonResult delRedRule(String ruleNo);
	
}
